package com.btr.uimeter;

import java.util.Map;

/*****************************************************************************
 * A class to store all information of a probing event produced by an
 * UIMeterProbe implementation. Every event is classified with a "type" and 
 * may contain additional data in a map sturcture.
 *   
 * @author Bernd Rosstauscher (java@rosstauscher.de) Copyright 2010
 ****************************************************************************/

public class UIMeterEvent {
	
	private String type;
	private Map<String, Object> data;
	
	/*************************************************************************
	 * Constructor
	 * @param type of the event
	 * @param data contains the additional data associated to the event.
	 ************************************************************************/
	
	public UIMeterEvent(String type, Map<String, Object> data) {
		super();
		this.type = type;
		this.data = data;
	}
	
	/*************************************************************************
	 * @return Returns the type of the event.
	 ************************************************************************/
	
	public String getType() {
		return type;
	}

	/*************************************************************************
	 * @return Returns the additional data.
	 ************************************************************************/
	
	public Map<String, Object> getData() {
		return data;
	}
	

}
